package com.csxh.web.spring.hangler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.ServletRequestUtils;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class TestControllerHandler implements Controller {

	public ModelAndView handleRequest(HttpServletRequest paramHttpServletRequest,
			HttpServletResponse paramHttpServletResponse) throws Exception {
		System.out.println("go here");
		
		ModelAndView mv=new ModelAndView();
		mv.addObject("data", "ok");
		mv.setViewName("/result.jsp");
		return mv;
		
	}

}
